package com.artifact.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.artifact.api.entity.City;
import com.artifact.api.entity.Student;
import com.artifact.api.othermapper.CityMapper;
import com.artifact.api.primarymapper.StudentMapper;
import com.artifact.api.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService{

	@Autowired
	private StudentMapper studentMapper;
	
	@Autowired
	private CityMapper cityMapper;

	@Override
	public Student selectStudentById(int id) {
		return studentMapper.selectStudentById(id);
	}

	@Override
	public City selectCityById(int id) {
		return cityMapper.selectCityById(id);
	}
}
